package com.example.task.enums;

/**
 * @author 陈建峰
 * @date 2022/10/31 14:22
 * @Description 执行状态
 */
public enum TaskStatus {
    NOT_START("未开始", 0),
    START("开始", 1),
    END("正常结束", 2),
    REFUSED("拒绝", 3),
    ERROR_END("异常结束", 4)
    ;

    TaskStatus(String name, Integer status) {
        this.name = name;
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    String name;
    Integer status;
}
